test.js ➔ ... ➔ ???   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
c 2
b 0
f 0
nc 1
dl 0
loc 5
rs 9.4285
nop 0
1
const assert = require ('assert')
2
    , bullet = require ('./string.bullet')
3
4
describe ('string.bullet', () => {
5
6
    it ('works', () => {
7
8
        assert.equal     (bullet ('\t\u001b[101m• \u001b[49m', 'foo\nbar\nbaz'),        '\t\u001b[101m• \u001b[49mfoo\n\t  bar\n\t  baz')
9
        assert.deepEqual (bullet ('\t\u001b[101m• \u001b[49m', ['foo', 'bar', 'baz']), ['\t\u001b[101m• \u001b[49mfoo', '\t  bar', '\t  baz'])
10
    })
11
})